<?php
    require_once $_SERVER['DOCUMENT_ROOT']."/../_lib/base/common.php";
    require_once SITE_ROOT_PATH."/_lib/classes/class.destinations.php";
    
    header( 'Cache-Control: no-cache' );
    header( 'Content-type: application/xml; charset="utf-8"', true );
    $parent_id = $_GET['parent_id'];
    $destinations = new destinations();
     $destination_child = $destinations->get_resorts_by_destination($parent_id);
    
    echo( json_encode( $destination_child ) );
        


?>

    